// import { RouteRecordRaw } from "vue-router";
const Layout = () =>
  import(/* webpackChunkName: "layout" */ "@/layouts/index.vue");
const Login = () => import(/* webpackChunkName: "login" */ "@/views/Login.vue");
const Home = () => import(/* webpackChunkName: "home" */ "@/views/Home.vue");
const error404 = () =>
  import(/* webpackChunkName: "home" */ "@/views/error/404.vue");
// import nav from "./nav-test";
const currencyRoutes = [
  {
    path: "/login",
    name: "Login",
    component: Login,
    meta: { title: "登录", hidden: true },
  },
  {
    path: "/",
    component: Layout,
    redirect: "/dashbord",
    children: [
      {
        path: "dashbord",
        name: "Dashbord",
        component: Home,
        meta: { title: "首页", icon: "el-icon-s-data", notKeep: true },
      },
    ],
  },
  {
    path: "/404",
    name: "404",
    component: error404,
    meta: { title: "404", hidden: true },
  },
  // { path: '/:pathMatch(.*)*', redirect: "/404",meta: { hidden: true } },
  // nav
  // {
  //   path: "/about",
  //   component: Layout,
  //   redirect: "/about/about1",
  //   meta: { title: "about", icon: "el-icon-s-data" },
  //   children: [
  //     {
  //       path: "about1",
  //       name: "about1",
  //       component: About1,
  //       meta: { title: "about1", icon: "" }
  //     },
  //     {
  //       path: "About2",
  //       name: "About2",
  //       component: About2,
  //       redirect: "About21",
  //       meta: { title: "About2", icon: "el-icon-s-data" },
  //       children: [
  //         {
  //           path: "about21",
  //           name: "about21",
  //           component: About1,
  //           meta: { title: "about1", icon: "" }
  //         },
  //         {
  //           path: "About22",
  //           name: "About22",
  //           component: About2,
  //           meta: { title: "About2", icon: "el-icon-s-data" }
  //         }
  //       ]
  //     }
  //   ]
  // }
];
export default currencyRoutes;
